package com.spring.anno;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class testano {
	public static void main(String[] args) {
//			ApplicationContext context=
//					new ClassPathXmlApplicationContext("bean1.xml");
//			User user = (User) context.getBean("user");
//			user.add();
		
			
			ApplicationContext context=
					new ClassPathXmlApplicationContext("bean1.xml");
			userservice user1 = (userservice) context.getBean("userservice");
			user1.add();
	}
}
